package com.extend_;

/**
 * @Author 小闽
 * @Date 2024/8/8 21:58
 * @PackageName: com.extend_
 * @ClassName: Extends01
 * @Description: 继承
 * @Version 1.0
 */
public class Extends01 {
    public static void main(String[] args) {
        Pupil  pupil = new Pupil();
        pupil.name = "小明";
        pupil.age = 20;
        pupil.testing();
        pupil.setScore(60);
        pupil.showInfo();

       Graduate graduate = new Graduate();
       graduate.name = "金角大王";
       graduate.age = 21;
       graduate.testing();
       graduate.setScore(60);
       graduate.showInfo();
    }

}
